home *** CD-ROM | disk | FTP | other *** search
/ Amoszine 2 / Amoszine 2.adf / dfc5.AMOS / dfc5.amosSourceCode
AMOS Source Code  |  1992-02-26  |  848b  |  31 lines

  1. '********************************
  2. '*         Execute.AMOS         *
  3. '*  ï¿½ 1992 by Volker Stepprath  *
  4. '*    Executes a CLI-Command    *
  5. '********************************
  6. '
  7. Amos To Back 
  8. '
  9. 'make sure the disk with filemaster on is in drive 0   
  10. 'or change the following to the drive it's on, DF1: for example. 
  11.  
  12. COMMAND$="df0:filemaster"+Chr$(0)
  13.  
  14. '
  15. 'you can change the program name to any multitasking program that you want 
  16. 'Dpaint for example. 
  17. '
  18. '
  19. Dreg(1)=Varptr(COMMAND$)
  20. Dreg(2)=0
  21. Dreg(3)=0
  22. XEXECUTE=Doscall(-222)
  23. '  
  24. '
  25. Amos To Front 
  26. Edit 
  27. ' you will now be sent straight back to the Amos editor
  28. 'all you have to do now is hold down the LEFT Amiga key and press A
  29. 'you will then be flipped from amos to filemaster. 
  30. 'Now you can do all the disk work and stuff you want, when you are finished
  31. 'Just press Left A and A again to return to Amos.